//
//  BluetoothInfoListCell.m
//  Cooper_Table_Example
//
//  Created by 计海峰 on 2021/8/19.
//  Copyright © 2021 jhfappkf@163.com. All rights reserved.
//

#import "BluetoothInfoListCell.h"
// BLE
#import <CoreBluetooth/CoreBluetooth.h>

@interface BluetoothInfoListCell ()<BindProtocol>

@property (nullable, nonatomic, weak, readwrite) __kindof id<BindProtocol> model;

@end

@implementation BluetoothInfoListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)bindTo:(__kindof id<BindProtocol>)model; {
    self.model = model;
    BindModel *bind = (BindModel *)model;
    CBPeripheral *info = (CBPeripheral *)bind.model;
    self.nameLB.text = info.name;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
